package com.zzyang.aop.demo.interceptor;

import com.zzyang.aop.demo.interceptor.anno.AopInterceptor;
import com.zzyang.aop.demo.interceptor.anno.AopMarker;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @author zhuoziyang
 * @date 2021/5/16 22:41
 */
@Component
@AopMarker
public class MyTestBean  {

    @AopInterceptor(interceptor = MyInterceptor.class)

    public String sayHello(String name) {
        return "hello," + name;
    }

}
